package cn.itcast.fallback;

import cn.itcast.clients.CastClients;
import cn.itcast.entity.Order;
import cn.itcast.entity.Result;
import feign.hystrix.FallbackFactory;

public class CastClientFallBackFactory implements FallbackFactory<CastClients> {

    @Override
    public CastClients create(Throwable throwable) {
        return new CastClients() {


            @Override
            public Result add(Order order) {
                return null;
            }

            @Override
            public Double getMoney(Long userId) {
                return null;
            }

//            @Override
//            public Result add(Order order) {
//                return null;
//            }
        };
    }
}
